import React from 'react';
import ReactDOM from 'react-dom/client';
// import App from './App';

// 导入store
import store from './store'
// 导入store提供组件Provider
import { Provider } from 'react-redux'
// 导入路由
import { RouterProvider } from 'react-router-dom'
import router from './router'




const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  // <React.StrictMode>
  //   {/* Provider组件将store注入到组件树中 */}
  //   <Provider store={store}>
  //     {/* 路由绑定 */}
  //     <RouterProvider router={router}></RouterProvider>
  //   </Provider>
  // </React.StrictMode>
  <Provider store={store}>
    <RouterProvider router={router} />
  </Provider>
);
